import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import qiankun from 'vite-plugin-qiankun'
// https://vitejs.dev/config/
export default defineConfig({
  build: {
    outDir:"../../../qiankun/build/test2"
  },
  plugins: [
    vue(),
    qiankun('app-vue1', { useDevMode: true })
  ],
  resolve: {
    alias: {
      '@': fileURLToPath(new URL('./src', import.meta.url))
    }
  },
  server: {
    headers: {
      'Access-Control-Allow-Origin': '*'
    },
    open: true, // 自动启动浏览器
    host: "0.0.0.0", // localhost
    port: 8003, // 端口号
 
  },
})
